// 弹窗里的 全屏按钮 状态 全屏图标 全屏切换

export function useFullscreen() {
  const isFullscreen = ref(false)
  const fullscreenSvgName = computed(() => (isFullscreen.value ? "fullscreen-exit" : "fullscreen"))

  const toggleFullscreen = () => {
    isFullscreen.value = !isFullscreen.value
  }

  return {
    isFullscreen,
    fullscreenSvgName,
    toggleFullscreen
  }
}
